example1: example1.o
	ld -o $@ $^

example1.o: example1.S
	as -o $@ $^

example2: example2.o
	ld -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o $@ -lc $^

example2.o: example2.S
	as -o $@ $^

clean:
	rm -f *.o example[0-9]